import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import "@/assets/style/reset.css";
import "@/assets/style/border.css";
import VueCookies from "vue-cookies";
import API from "@/api";
Vue.use(VueCookies);
Vue.config.productionTip = false;
Vue.use(ElementUI);
import "@/icon/index.js";
// 挂载qs
import qs from "qs";
Vue.prototype.$qs = qs;
// 将自动注册所有组件为全局组件
import "@/assets/style/global.css";
import "@fortawesome/fontawesome-free/css/all.css";
// 挂载axios
Vue.prototype.$API = API;
// 注册时间过滤器
import { formatDate, removeBrTags } from "@/utils/filters";
Vue.filter("formatDate", formatDate);
Vue.filter("removeBrTags", removeBrTags);
// import '@/utils/message' // 导入 message.js 文件
import mobileMixin from "@/mixin/mobileMixin";
Vue.mixin(mobileMixin);
import { Message, MessageBox } from "element-ui";
Vue.component(Message.name, Message);
Vue.prototype.$message = Message;
// 全局注册
import VueVideoPlayer from "vue-video-player";

// 导入视频播放器的样式文件
import "video.js/dist/video-js.css";
import "vue-video-player/src/custom-theme.css";
window.videojs = VueVideoPlayer.videojs;
import "video.js/dist/video-js.css";
require("video.js/dist/lang/zh-CN.js");

Vue.use(VueVideoPlayer);
Vue.prototype.$confirm = MessageBox.confirm;
new Vue({
    router,
    store,
    beforeCreate() {
        // 挂载全局事件总线
        Vue.prototype.$bus = this;
    },
    render: (h) => h(App),
}).$mount("#app");